﻿using System;
using System.Collections.Generic;

namespace DataAccess.Entities
{
    public class Event
    {
        public virtual int Id { get; set; }
        public virtual string Title { get; set; }
        public virtual string Description { get; set; }
        public virtual DateTime StartTime { get; set; }
        public virtual DateTime EndTime { get; set; }
        public virtual Account Owner { get; set; }
        public virtual string Location { get; set; }
        public virtual IList<Interest> Categories { get; set; }

        public Event()
        {
            Categories = new List<Interest>();
        }

        public virtual void AddCategory(Interest category)
        {
            category.Events.Add(this);
            Categories.Add(category);
        }
    }

}
